///
///Author: YYF
///Date: 2020-12-19 15:29:56
///Description:
///

import 'dart:convert';

import 'package:flutter/material.dart';
import 'package:fluro/fluro.dart';

/// 查看大图
// Handler photoViewGalleryScreenPageHandler = Handler(
//   handlerFunc: (context, params) {
//     String images = params['images']?.first;
//     String index = params['index']?.first;
//     String heroTag = params['heroTag']?.first;

//     List<String> imagesList = <String>[];
//     for (var value in json.decode(images)) {
//       print(value);
//       imagesList.add(value);
//     }
//     return PhotoViewGalleryScreen(
//       images: imagesList,
//       index: int.parse(index),
//       heroTag: heroTag,
//     );
//   },
// );

///文章详情
// Handler articleDetailPageHandler = Handler(
//   handlerFunc: (BuildContext context, Map<String, List<String>> params) {
//     String modelStr = params['model'].first;
//     ArticleModel mode = ArticleModel.fromJson(jsonDecode(modelStr));
//     return ArticleDetailPage(mode);
//   },
// );
